<div class="layui-form-item">
    <label class="layui-form-label">{$label}</label>
    <div class="layui-input-block">
        <table class="layui-table">
            <thead>
            <tr>
                <th class="text-left">商品规格</th>
                <th class="text-center">销售价格</th>
                <th class="text-center">库存统计</th>
                <th class="text-center">总销统计</th>
                <th class="text-center">库存剩余</th>
                <th class="text-center">{eq name="$type" value="1"}入库数量{else/}出库数量{/eq}</th>
            </tr>
            </thead>
            <!--{foreach $spec as $goods}-->
            <tr>
                <td class="padding-0" width="50%">
                    <input class="layui-input layui-bg-gray border-0" disabled value="{$goods.spec_name}">
                </td>
                <td class="padding-0" width="10%">
                    <input class="layui-input text-center layui-bg-gray border-0 padding-left-0" disabled value="￥{$goods.price}">
                </td>
                <td class="padding-0" width="10%">
                    <input class="layui-input text-center layui-bg-gray border-0 padding-left-0" disabled value="{$goods.stock}">
                </td>
                <td class="padding-0" width="10%">
                    <input class="layui-input text-center layui-bg-gray border-0 padding-left-0" disabled value="{$goods.sale} ">
                </td>
                <td class="padding-0" width="10%">
                    <input class="layui-input text-center layui-bg-gray border-0 padding-left-0" disabled value="{$goods.stock-$goods.sale} ">
                </td>
                <td class="padding-0" width="10%">
                    <input type="hidden" name="spec_id[]" value="{$goods.id|default=''}">
                    <input type="hidden" name="spec_name[]" value="{$goods.spec_name|default=''}">
                    <input class="layui-input text-center border-0 padding-left-0" type="number" min="0" {eq name="$type" value="2"}max="{$goods.stock-$goods.sale}"{/eq}  name="goods_number[]" value="0">
                </td>
            </tr>
            <!--{/foreach}-->
        </table>
    </div>
</div>